using UnityEngine;

public class TutorialCollider : MonoBehaviour
{
	public enum TypeCollider
	{
		Start = 0,
		Car = 1
	}

	public static TutorialCollider instance;

	public TypeCollider curCollider;

	public GameObject colStart;

	public GameObject colCar;

	private void Awake()
	{
		instance = this;
	}

	private void OnDestroy()
	{
		instance = null;
	}

	private void Update()
	{
		if (curCollider == TypeCollider.Start && !colStart.activeSelf)
		{
			colStart.SetActive(true);
			colCar.SetActive(false);
		}
		if (curCollider == TypeCollider.Car && !colCar.activeSelf)
		{
			colStart.SetActive(false);
			colCar.SetActive(true);
		}
	}
}
